﻿using System;
using System.Collections.Generic;
using System.ComponentModel;

namespace GameLibrary.Internal.Converters
{
    class PlayerStringConverter : StringConverter
    {
        public readonly static string[] NAMES = new string[]{
            "Player1", 
            "Player2", 
            "Computer", 
            "Nothing"
        };

        public override bool GetStandardValuesSupported(
                                   ITypeDescriptorContext context)
        {
            return true;
        }

        public override StandardValuesCollection
                             GetStandardValues(ITypeDescriptorContext context)
        {
            return new StandardValuesCollection(NAMES);
        }

        public override bool GetStandardValuesExclusive(
                                   ITypeDescriptorContext context)
        {
            return false;
        }
    }
}
